<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <ul>
      <li v-for="(item, index) of list" :key="index">
        {{ item.area }}
      </li>
    </ul>
  </div>
</body>
<script src="lib/vue.js"></script>
<script src="lib/axios.js"></script>
<script>
  new Vue({
    el: '#app',
    data: {
      list: []
    },
    mounted () {
      // 
      axios.get('https://api.i-lynn.cn/college')
        .then(res => {
          // console.log(res)
          this.list = res.data.data.list
        })
      // 如果是post请求  http://121.89.205.189/apidoc/#api-User-PostUserLogin
      axios.post('http://121.89.205.189/api/user/login', {
        loginname: '18813007814', password: '123456'
      }).then(res => {
        console.log(res.data)
      })
      
      // axios({
      //   url: 'http://121.89.205.189/api/pro/list',
      //   // data: { // POST PUT PATCH
      //   //   limitNum: 50
      //   // }
      //   params: {
      //     limitNum: 50
      //   }
      // }).then(res => {
      //   console.log(res.data)
      // })

      // axios.get('http://121.89.205.189/api/pro/list?limitNum=30').then(res => {
      //   console.log(res.data)
      // })
      axios.get('http://121.89.205.189/api/pro/list', {
        params: {
          limitNum: 100
        }
      }).then(res => {
        console.log(res.data)
      })
    }
  })
</script>
</html>